/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/itframe">itframe</a> All rights reserved.
 */
package com.rise.itframe.modules.inv.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.rise.itframe.common.persistence.DataEntity;

/**
 * 发票白名单配置Entity
 * @author 发票白名单配置
 * @version 2017-12-31
 */
public class InvConf extends DataEntity<InvConf> {
	
	private static final long serialVersionUID = 1L;
	private String invDeptName;		// 开票单位名称
	private Long invNum;		// 开票次数
	private String status;		// 状态
	
	public InvConf() {
		super();
	}

	public InvConf(String id){
		super(id);
	}

	@Length(min=1, max=100, message="开票单位名称长度必须介于 1 和 100 之间")
	public String getInvDeptName() {
		return invDeptName;
	}

	public void setInvDeptName(String invDeptName) {
		this.invDeptName = invDeptName;
	}
	
	@NotNull(message="开票次数不能为空")
	public Long getInvNum() {
		return invNum;
	}

	public void setInvNum(Long invNum) {
		this.invNum = invNum;
	}
	
	@Length(min=0, max=2, message="状态长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}